//
//  PPContentView.h
//  StatusBarEX
//
//  Created by Garenge on 2020/11/29.
//  Copyright © 2020 鹏鹏. All rights reserved.
//

#import <UIKit/UIKit.h>

#define SimpleColor(r, g, b, a) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:(a)]

NS_ASSUME_NONNULL_BEGIN

@interface PPContentView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *strengthIMV;
@property (weak, nonatomic) IBOutlet UILabel *operatorLabel;

@property (weak, nonatomic) IBOutlet UIImageView *netIMV;
- (void)refreshNetWith:(BOOL)isWifi value:(UIImage * _Nullable)image;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
- (void)refreshTime:(NSString *)timeString;

@property (weak, nonatomic) IBOutlet UIImageView *energyIMV;
- (void)refreshEnergyIMVWithImage:(UIImage *)image;

/// 右边三个比较特殊, 从右向左分别容纳 (闹钟, 定位, 锁定屏幕方向)
@property (weak, nonatomic) IBOutlet UIImageView *right1IMV;
@property (weak, nonatomic) IBOutlet UIImageView *right2IMV;
@property (weak, nonatomic) IBOutlet UIImageView *right3IMV;
/// 刷新右边三个界面的view
- (void)refreshRightIMVsWithImages:(NSArray <UIImage *>*)images;

/// 需要修改的图片
@property (nonatomic, strong) UIImage *image;

/// 刷新状态栏颜色
- (void)refreshStatusBarColor:(UIColor *)color;
    /// 刷新状态栏文字颜色
- (void)refreshStatusBarTextColor:(UIColor *)color;

/// 刷新状态栏高度 (不同手机截屏, 20会被缩放)
- (void)refreshSattusBarHeightWithScale: (CGFloat)scale;
- (void)refreshStatusBarHeightWithHeight:(CGFloat)height;

+ (instancetype)createViewFromNib;

@end

NS_ASSUME_NONNULL_END
